package com.yigo.framework.base;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.tangzc.mpe.annotation.DefaultValue;
import com.tangzc.mpe.autotable.annotation.ColumnComment;
import com.yigo.framework.annotation.Entity;
import com.yigo.framework.snapshot.DmoSnapshot;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author chenzl
 */
@Data
@Entity
public class BaseEntity implements DmoSnapshot {
    /**
     * 忽略该字段，不参与建表
     */
    private Object snapshot;
    /**
     * 创建时间
     */
    private LocalDateTime createTime;
    /**
     * 最后更新时间
     */
    private LocalDateTime updateTime;
    /**
     * 乐观锁版本号
     */
    private Integer version;
    /**
     * 逻辑删除标志:0-否；1-是
     */
    protected Integer deleted;
}
